<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');     

$id=isset($_GET["id"])?$_GET["id"]:'';
if($id)$T->readDB("select * from sys_schedule_type where id=".$id);  

$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 